import { request } from "@/utils/service"
import { getToken } from "@/utils/cache/cookies"

/** 增 */
export function postMsg(data: any) {
  return request({
    url: "/others/discuss/add",
    method: "put",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    data
  })
}

/** 查 */
export function getMsg(params: any) {
  return request({
    url: "/others/discuss/query",
    method: "get",
    params
  })
}
export function backMsg(data: any) {
  return request({
    url: "/others/discuss/backAdd",
    method: "post",
    data
  })
}
